/*
 * This file is part of JMesh.
 *
 * last modified: September 20, 10:00 AM
 *
 */
package br.ufmg.dees.insane.ui.rich.full.command;

import javax.swing.JInternalFrame;

import br.ufmg.dees.insane.commons.command.Command;
import br.ufmg.dees.insane.ui.rich.full.InsaneInternalInterface;

/**
 *
 * @author Pitangueira, Roque & Brugiolo, Marco  
 * @version 0.0.1 Beta  
 */
public class SurfaceForceCommand implements Command {
    
    private InsaneInternalInterface parent;

    /** Creates new SurfaceForceCommand */
    public SurfaceForceCommand(JInternalFrame parent) {
        this.parent = (InsaneInternalInterface)parent;
    }

    public void execute() {
		AddSurfaceForceCommand setAttrib = new AddSurfaceForceCommand(parent);
		parent.getDrawing().setRightClickedCommand(setAttrib);
		parent.getDrawing().setClickedCommand(new SelectCommand(parent));
		parent.getDrawing().setCursor();
		setAttrib.execute();
	}
    
    /**
     * Impossible to undo - not implemented.
     */
    public void undo() {}
    
    /**
     * Impossible to redo - not implemented.
     */
    public void redo() {}
        
}


